package com.cy.pj.eiems.controller;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

import com.cy.pj.eiems.entity.AgencyInformation;
import com.cy.pj.eiems.service.EiemsAgencyComment;
import com.cy.pj.eiems.vo.JsonResult;
import com.cy.pj.eiems.vo.PageObject;

@Controller
@RequestMapping("/comment/")
public class AgencyCommentController {
	
	@Autowired
	private EiemsAgencyComment eiemsAgencyComment;
	
	@RequestMapping("doFindObjects")
	@ResponseBody
	public JsonResult doFindObjects(String name,Integer pageCurrent) {
		PageObject<AgencyInformation> Aname = eiemsAgencyComment.findObjects(name,pageCurrent);
		return new JsonResult(Aname);
	}
	
}
